<title>Medidas</title>
	  <?
include 'conexion.php';
	  extract($_POST);
      extract($_GET);
      
      if ($valor=="" or $sugun==""){?>
      }
      }
	  
	  <script language="JavaScript" type="text/JavaScript">
alert('�FALTAN DATOS VERIFICA!')
window.self.location="medidas.php?<? echo 'valor='.$valor.'&sugun='.$sugun;?>"

</script>
	  
	   <? }	 else {
	 //$base="ucg - copia";
	$tabla="medida";
	//$conexion=mysql_connect("localhost","root","");
	//mysql_select_db($base,$conexion);  
	mysql_query("INSERT $tabla VALUES('$sugun',$valor)",$conexion); ?>

 <script language="JavaScript" type="text/JavaScript">
alert('�Medida <? echo $sugun ?> Guardada!')
window.self.location="medidas.php"

</script>
<? } ?>
	</body>
</html>
